<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model;


/**
 * @property int $id
 * @property int $dict_id
 * @property string $label
 * @property string $value
 * @property string $style
 * @property string $is_default
 * @property int $sort
 * @property string $remark
 * @property int $status
 */
class DictDatum extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'dict_data';

    public bool $timestamps = false;

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['dict_id', 'label', 'value', 'style', 'is_default', 'sort', 'remark', 'status'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'dict_id' => 'integer', 'sort' => 'integer', 'status' => 'integer'];
}
